#ifndef LS302_H
#define LS302_H

//_____________________________________________________________________________
// IRQ Map

typedef enum IRQn
{
    NonMaskableInt_IRQn          = -14,
    MemoryManagement_IRQn        = -12,
    BusFault_IRQn                = -11,
    UsageFault_IRQn              = -10,
    SVCall_IRQn                  = -5,
    DebugMonitor_IRQn            = -4,
    PendSV_IRQn                  = -2,
    SysTick_IRQn                 = -1,
    WWDGT_IRQn                   = 0,
} IRQn_Type;

//_____________________________________________________________________________
// MUST after IRQn_Type as the file use it

#include "hwip/core_cm4.h"

//_____________________________________________________________________________
// Memory Map

#define FLASH_BASE            ((uint32_t)0x08000000U)
#define SRAM_BASE             ((uint32_t)0x01000000U)

#define APB1_BUS_BASE         ((uint32_t)0x40000000U)
#define APB2_BUS_BASE         ((uint32_t)0x40010000U)
#define AHB1_BUS_BASE         ((uint32_t)0x40020000U)
#define AHB2_BUS_BASE         ((uint32_t)0x50000000U)

#define TIMER_BASE            (APB1_BUS_BASE + 0x00000000U)

#endif
